package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 关联属性对象 sys_object_property
 * 
 * @author ruoyi
 * @date 2022-08-10
 */
public class SysObjectProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 类英文名称 */
    @Excel(name = "类英文名称")
    private String nameEn;

    /** 类中文名称 */
    @Excel(name = "类中文名称")
    private String nameZh;

    /** 公用字段（跨库检索使用） */
    @Excel(name = "公用字段", readConverterExp = "跨=库检索使用")
    private Long commonObjectPropertyId;

    /** 所属类 */
    @Excel(name = "所属类")
    private Long classesId;

    /** 关联类 */
    @Excel(name = "关联类")
    private Long relevanceClassesId;

    /** 关联类字段 */
    @Excel(name = "关联类字段")
    private String relevanceClassFields;

    /** 字段名称（存储和Solr使用） */
    @Excel(name = "字段名称", readConverterExp = "存=储和Solr使用")
    private String field;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNameEn(String nameEn) 
    {
        this.nameEn = nameEn;
    }

    public String getNameEn() 
    {
        return nameEn;
    }
    public void setNameZh(String nameZh) 
    {
        this.nameZh = nameZh;
    }

    public String getNameZh() 
    {
        return nameZh;
    }
    public void setCommonObjectPropertyId(Long commonObjectPropertyId) 
    {
        this.commonObjectPropertyId = commonObjectPropertyId;
    }

    public Long getCommonObjectPropertyId() 
    {
        return commonObjectPropertyId;
    }
    public void setClassesId(Long classesId) 
    {
        this.classesId = classesId;
    }

    public Long getClassesId() 
    {
        return classesId;
    }
    public void setRelevanceClassesId(Long relevanceClassesId) 
    {
        this.relevanceClassesId = relevanceClassesId;
    }

    public Long getRelevanceClassesId() 
    {
        return relevanceClassesId;
    }
    public void setRelevanceClassFields(String relevanceClassFields) 
    {
        this.relevanceClassFields = relevanceClassFields;
    }

    public String getRelevanceClassFields() 
    {
        return relevanceClassFields;
    }
    public void setField(String field) 
    {
        this.field = field;
    }

    public String getField() 
    {
        return field;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nameEn", getNameEn())
            .append("nameZh", getNameZh())
            .append("commonObjectPropertyId", getCommonObjectPropertyId())
            .append("classesId", getClassesId())
            .append("relevanceClassesId", getRelevanceClassesId())
            .append("relevanceClassFields", getRelevanceClassFields())
            .append("field", getField())
            .append("sort", getSort())
            .toString();
    }
}
